import java.util.Scanner;
public class Test3 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入年龄");int age=in.nextInt();
        System.out.println("请输入血压");int Blood =in.nextInt();
        String kon=in.nextLine();//注释空格
        System.out.println("请输入性别");
        String inexd=in.nextLine();
        hypertension(age,inexd,Blood);
    }
    public static void hypertension(int age,String inexd,int Blood){
        if(age>=51&&age<=55){
            if(inexd.equals("男")||inexd.equals("女")){
                if(Blood>134){
                    System.out.println("有高血压");
                }
                else System.out.println("没有高血压");
            }
        }
        if(age>=56&&age<=60){
            if (inexd.equals("男")){
                if (Blood>137){
                    System.out.println("有高血压");
                }
                else System.out.println("没有高血压");
            }
            else if (inexd.equals("女")){
                if (Blood>139){
                    System.out.println("有高血压");
                }
                else System.out.println("没有高血压");
            }
        }
    }

}
